import request from '@/utils/request'
import formurlencoded from 'form-urlencoded'

//订单列表list
export function listOrders(query) {
  return request({
    url: 'admin/order/orders/list',
    method: 'get',
    params: query
  })
}

//订单列表确认收款
export function submitpayOrders(query) {
  return request({
    url: 'admin/order/orders/submitpay',
    method: 'get',
    params: query
  })
}

//订单打印
export function printOrders(query) {
  return request({
    url: 'admin/order/orders/print',
    method: 'get',
    params: query
  })
}

//订单详情
export function detailsOrders(query) {
  return request({
    url: 'admin/order/orders/details',
    method: 'get',
    params: query
  })
}

//取所有商家
export function getSellers(query) {
  return request({
    url: 'admin/seller/manage/getSellers',
    method: 'get',
    params: query
  })
}
